import "../web/viewer.js";
import { createApp } from "vue";
import App from "./App.vue";

import "@/styles/index.scss";

// 一定要在main.ts中导入tailwind.scss，防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
import "@/styles/tailwind.scss";

import { setupPlugins } from "@/enhance";

window.env = import.meta.env.MODE;
if (window.env !== "development") {
  window.appVersion = appVersion;
}

const app = createApp(App);
//扩展vue功能：添加全局组件、指令等
setupPlugins(app);

app.mount("#app");
